package birdsong.server;

import java.util.LinkedList;

public class Client {

        private String nickName;
        private LinkedList<Client> followedList = new LinkedList<Client>();
        private LinkedList<Client> followersList = new LinkedList<Client>();
        
        
        public Client(String nickName){
                this.nickName = nickName;
        }
        
        public void addFollower(Client follower){
                followersList.add(follower);
        }
        
        public void removeFollower(Client follower){
                followersList.remove(follower);
        }
        
        public void addFollowed(Client followed){
                followedList.add(followed);
        }
                
        public void removeFollowed(Client followed){
                followedList.remove(followed);
        }       
        
        public String getNickname() {
                return nickName;
        }

        public LinkedList<Client> getFollowedList() {
                return followedList;
        }

        public LinkedList<Client> getFollowersList() {
                return followersList;
        }
}
